package main

import (
	"ioc/Config"
	"ioc/Injector"
	"ioc/server"
)

func main() {
	con := Config.NewServiceConfig()
	Injector.BeanmapperIml.Config(con)
	//Injector.BeanmapperIml.Set(Config.NewServiceConfig())
	//Injector.BeanmapperIml.ExprMap= map[string]interface{}{
	//	"ServiceConfig":Config.NewServiceConfig(),
	//}
	userserver := &server.UserService{}
	Injector.BeanmapperIml.Apply(userserver)
	userserver.GetUserInfo(2)
	//adminserver := &server.AdminService{}
	//Injector.BeanmapperIml.Apply(adminserver)
	//fmt.Println(userserver.Order)
}
